﻿using System.Windows;
using System.Windows.Controls;

namespace OmniKits.Windows.Design
{
    public class DesignControl : ContentControl
    {
        static DesignControl()
        {
            DefaultStyleKeyProperty.OverrideMetadata(typeof(DesignControl), new FrameworkPropertyMetadata(typeof(DesignControl)));
        }

        public bool IsDesignMode
        {
            get { return (bool)GetValue(IsDesignModeProperty); }
            set { SetValue(IsDesignModeProperty, value); }
        }
        public static readonly DependencyProperty IsDesignModeProperty = DependencyProperty.Register("IsDesignMode", typeof(bool), typeof(DesignControl));
    }
}
